package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc CanEvaVirtualOrgMemberDto
 * @使用场景
 */
@Data
public class CanEvaVirtualOrgMemberDto extends BaseDto implements Serializable {

  /**
   * 虚拟组织成员ID
   */
  @ApiModelProperty("虚拟组织成员ID")
  private String virtualOrgMemberId;

  /**
   * 角色标识
   */
  @ApiModelProperty("角色标识")
  private String roleCode;

  /**
   * 组内职务名称
   */
  @ApiModelProperty("组内职务名称")
  private String virtualOrganizationPosition;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    CanEvaVirtualOrgMemberDto that = (CanEvaVirtualOrgMemberDto) o;
    return (
      virtualOrgMemberId == that.virtualOrgMemberId &&
      roleCode == that.roleCode &&
      virtualOrganizationPosition == that.virtualOrganizationPosition
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      virtualOrgMemberId,
      roleCode,
      virtualOrganizationPosition
    );
  }

}
